package com.zhijian.medical.entity.vo.request;

import com.zhijian.medical.entity.po.ExperimentProcessCsv;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 实验流程-csv新增or修改vo
 *
 * @author HCG
 * @version 1.0
 * @date 2022/4/8
 */
@Data
@Api(tags = "实验流程-csv新增or修改vo")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExperimentProcessCsvSaveOrUpdateVo {

    /**
     * 实验流程id
     */
    @ApiModelProperty(value = "实验流程id", hidden = true)
    private Long experimentProcessId;

    /**
     * 数据列表
     */
    @ApiModelProperty("数据列表")
    @Valid
    @NotNull(message = "数据列表不能为空")
    @Size(min = 1, message = "数据列表至少为1条")
    private List<ExperimentProcessCsv> experimentProcessCsvList;
}
